package com.teemo.dp.factorymethod.demo3.factory;

import com.teemo.dp.factorymethod.demo3.computer.Computer;
import com.teemo.dp.factorymethod.demo3.computer.HandheldComputer;

/**
 * @author Teemo
 */
public class HandheldComputerFactory implements ComputerFactory{
    @Override
    public Computer createComputer() {
        HandheldComputer handheldComputer = new HandheldComputer();
        handheldComputer.setCpu("Intel i7");
        handheldComputer.setMemory("8GB");
        handheldComputer.setHardDisk("256GB");
        return handheldComputer;
    }
}
